package com.dmap.admin.po;

import java.io.Serializable;

public class Device implements Serializable {
    /**
     * 主键id
     * 表字段 : device.id
     */
    private Long id;

    /**
     * 设备类型id，该设备是属于那个大类的，是手表/称/血压仪还是其它
     * 表字段 : device.type_id
     */
    private Long typeId;

    /**
     * 设备固件编号
     * 表字段 : device.firmware
     */
    private String firmware;

    /**
     * 设备名称
     * 表字段 : device.device_name
     */
    private String deviceName;

    /**
     * 该设备的图片url
     * 表字段 : device.device_image_url
     */
    private String deviceImageUrl;

    /**
     * 状态：1正常，2禁用
     * 表字段 : device.status
     */
    private Integer status;

    /**
     * 备注
     * 表字段 : device.note
     */
    private String note;

    /**
     * 创建时间
     * 表字段 : device.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : device.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table device
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table device
     *
     * @mbggenerated
     */
    public Device(Long id, Long typeId, String firmware, String deviceName, String deviceImageUrl, Integer status, String note, Long createTime, Long updateTime) {
        this.id = id;
        this.typeId = typeId;
        this.firmware = firmware;
        this.deviceName = deviceName;
        this.deviceImageUrl = deviceImageUrl;
        this.status = status;
        this.note = note;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table device
     *
     * @mbggenerated
     */
    public Device() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.id
     *
     * @return the value of device.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.id
     *
     * @param id the value for device.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.type_id
     *
     * @return the value of device.type_id
     *
     * @mbggenerated
     */
    public Long getTypeId() {
        return typeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.type_id
     *
     * @param typeId the value for device.type_id
     *
     * @mbggenerated
     */
    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.firmware
     *
     * @return the value of device.firmware
     *
     * @mbggenerated
     */
    public String getFirmware() {
        return firmware;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.firmware
     *
     * @param firmware the value for device.firmware
     *
     * @mbggenerated
     */
    public void setFirmware(String firmware) {
        this.firmware = firmware == null ? null : firmware.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.device_name
     *
     * @return the value of device.device_name
     *
     * @mbggenerated
     */
    public String getDeviceName() {
        return deviceName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.device_name
     *
     * @param deviceName the value for device.device_name
     *
     * @mbggenerated
     */
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName == null ? null : deviceName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.device_image_url
     *
     * @return the value of device.device_image_url
     *
     * @mbggenerated
     */
    public String getDeviceImageUrl() {
        return deviceImageUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.device_image_url
     *
     * @param deviceImageUrl the value for device.device_image_url
     *
     * @mbggenerated
     */
    public void setDeviceImageUrl(String deviceImageUrl) {
        this.deviceImageUrl = deviceImageUrl == null ? null : deviceImageUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.status
     *
     * @return the value of device.status
     *
     * @mbggenerated
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.status
     *
     * @param status the value for device.status
     *
     * @mbggenerated
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.note
     *
     * @return the value of device.note
     *
     * @mbggenerated
     */
    public String getNote() {
        return note;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.note
     *
     * @param note the value for device.note
     *
     * @mbggenerated
     */
    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.create_time
     *
     * @return the value of device.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.create_time
     *
     * @param createTime the value for device.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column device.update_time
     *
     * @return the value of device.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column device.update_time
     *
     * @param updateTime the value for device.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table device
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeId=").append(typeId);
        sb.append(", firmware=").append(firmware);
        sb.append(", deviceName=").append(deviceName);
        sb.append(", deviceImageUrl=").append(deviceImageUrl);
        sb.append(", status=").append(status);
        sb.append(", note=").append(note);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}